<template>
  <div class="headerTop">
    <h3>{{headerTxt}}</h3>
  </div>
</template>

<script>
import bus from '../assets/eventBus'
export default {
  name: 'headerTop',
  data (){
    return {
      headerTxt: '汇讯通'
    }
  },
  mounted(){
    let _this = this;
    bus.$on('setHeaderTxt', (msg) => {
      this.headerTxt = msg;
    });
  }
}
</script>

<style lang="scss">
  .headerTop{
    background: #333;
    color:#fff;
  }
  
</style>
